package com.example.work.entity;



/**
 * @Description:
 * @author: JinMu
 * @create: 2018-07-31 16:27
 * @Version: 1.0
 **/
public class Buy {
    //@NotEmpty(message = "商家编号不能为空")
    private String name;
    //@NotEmpty(message = "商品编号不能为空")
    private String ProductID;
    //@NotEmpty(message = "购买数量不能为空")
    private String BuyAmount;

    private String TargetAccount;

    public Buy() {
    }

    public Buy(String name, String productID, String buyAmount, String targetAccount) {
        this.name = name;
        ProductID = productID;
        BuyAmount = buyAmount;
        TargetAccount = targetAccount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProductID() {
        return ProductID;
    }

    public void setProductID(String productID) {
        ProductID = productID;
    }

    public String getBuyAmount() {
        return BuyAmount;
    }

    public void setBuyAmount(String buyAmount) {
        BuyAmount = buyAmount;
    }

    public String getTargetAccount() {
        return TargetAccount;
    }

    public void setTargetAccount(String targetAccount) {
        TargetAccount = targetAccount;
    }

    @Override
    public String toString() {
        return "Buy{" +
                "name='" + name + '\'' +
                ", ProductID='" + ProductID + '\'' +
                ", BuyAmount='" + BuyAmount + '\'' +
                ", TargetAccount='" + TargetAccount + '\'' +
                '}';
    }
}
